//
//  LayerUtils.h
//  iosOpenP
//
//  Created by liupm on 14-8-7.
//
//

#import <Foundation/Foundation.h>
#import "TKIMProgressHUD.h"
#import "TKIMToast+UIView.h"
#import "TKIMLayerUtils.h"

/**
 *  @Author lpm, 16-05-05 17:05:22
 *
 *  @brief  短提示位置
 */
typedef NS_ENUM(NSInteger,TKIMLayerTipPosition){
    /**
     *  @Author lpm, 16-05-05 17:05:22
     *
     *  @brief  顶部
     */
    TKIMLayerTipPositionTop,
    /**
     *  @Author lpm, 16-05-05 17:05:22
     *
     *  @brief  中间
     */
    TKIMLayerTipPositionCenter,
    /**
     *  @Author lpm, 16-05-05 17:05:22
     *
     *  @brief  底部
     */
    TKIMLayerTipPositionBottom
};





@interface TKIMLayerUtils : NSObject

//是否锁定屏幕
@property(nonatomic,assign)BOOL isLockScreen;


/**
 *  @Author lpm, 15-11-13 15:11:04
 *
 *  @brief  单例
 *
 *  @return
 */
+(TKIMLayerUtils *)instance;


/**
 *  @Author lpm, 15-11-13 15:11:50
 *
 *  @brief  初始化
 *
 *  @param _contentView
 *
 *  @return
 */
-(id)initWithContent:(UIView *)_contentView;

/**
 *  @Author lpm, 16-05-05 17:05:22
 *
 *  @brief
 *
 *  @param isShow
 *  @param text
 */
-(void)showLoading:(BOOL)isShow withLabel:(NSString *)text;


/**
 *  @Author lpm, 16-05-05 17:05:26
 *
 *  @brief
 *
 *  @param isShow
 */
-(void)showLoading:(BOOL)isShow;


/**
 *  @Author lpm, 16-05-05 17:05:17
 *
 *  @brief
 *
 *  @param tip
 */
-(void)showTip:(NSString *)tip;

/**
 *  @Author lpm, 16-05-05 17:05:55
 *
 *  @brief
 *
 *  @param tip
 *  @param delay
 */
-(void)showTip:(NSString *)tip  hideAfterDelay:(NSTimeInterval)delay;

/**
 *  @Author lpm, 16-05-05 17:05:43
 *
 *  @brief  短提示
 *
 *  @param tip
 *  @param position
 */
-(void)showTip:(NSString *)tip position:(TKIMLayerTipPosition)position;

/**
 *  @Author lpm, 16-05-05 17:05:47
 *
 *  @brief
 *
 *  @param tip
 *  @param position
 *  @param delay
 */
-(void)showTip:(NSString *)tip position:(TKIMLayerTipPosition)position  hideAfterDelay:(NSTimeInterval)delay;


@end
